Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to add flag to control common masking policy db #25

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

entechlog
Copy link
Owner

No description provided.

@entechlog entechlog marked this pull request as draft April 22, 2022 04:51
@entechlog
Copy link
Owner Author

changes to add flag to control common masking policy

How to configure database and schema for the masking policy ?

By default this process creates the masking policies in same directory as the database objects. You can change this default behavior by using following parameters in your dbt_project.yml

  • use_common_masking_policy_db (optional): Flag to enable the usage of a common db/schema for all masking policies. Valid values are “True” OR "False"
  • common_masking_policy_db (optional): The database name for creating masking policies
  • common_masking_policy_schema (optional): The schema name for creating masking policies

Test result with config enabled

vars:
  use_common_masking_policy_db: "True"
  common_masking_policy_db: "DEMO_DB"
  common_masking_policy_schema: "GDPR"

image

Test result without config in project
image

Data in snowflake
image

@entechlog entechlog marked this pull request as ready for review April 22, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant